package 
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.KeyboardEvent;
	import flash.events.MouseEvent;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	import flash.utils.getTimer;
	
	/**
	 * ...
	 * @author Some Guys
	 */
	[SWF(backgroundColor="0x000000" , width="650" , height="480")] // Set stage color and size
	public class Main extends Sprite 
	{
		// Timing variables
		public var timerLast:Number = getTimer();
		public var timerCurrent:Number = getTimer();
		public var dbObj:Database = new Database();
				
		public function Main():void
		{
			stage.addEventListener(Event.ENTER_FRAME, gameLoop, false, 0, false); // Listen for enter frame, start gameLoop
			stage.addChild(dbObj);
			
		}
		
		public function gameLoop(e:Event):void
		{
			timerCurrent = getTimer();
			var delta:Number = timerCurrent - timerLast; // Milliseconds delay between leaving and entering frame
			
			timerLast = getTimer();
		}
		
	}
	
}